#include"ProcBar.h"

void process(){
  char bar[NUM];
  memset(bar, '\0', sizeof(bar));
  const char* label = "|/-\\";
  int i = 0;
  while(i <= 100){
    printf("Load. [%-100s][%3d%%][%c]\r", bar, i, label[i%4]);
    fflush(stdout);
    bar[i++] = '#';
    usleep(30000);
  }
  printf("\n");
}
